<template>
  <div>
    <h3>名称: {{title}}</h3>
    <el-form label-width="80px" class="demo-ruleForm">
      <el-form-item label="描述：">
        团队全国业务员区域销售报表
      </el-form-item>
      <el-form-item>
        <el-button type="primary" v-if="showBtn" @click="onSubmit('tuandui_global_area_sale')">执行</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
import apiRedoReportLog from "@/api/logManage/redoReportLog";
export default {
  name: "redoReportLogOrderReport",
  props:{
        title: { //父组件 查询对象
          type: String,
          default: ""
        }
  },
  data() {
    return { 
      dateInput:'',
      showBtn:true
    };
  },
  methods: {
    onSubmit(msgType){
      this.showBtn = false
      setTimeout(() => {
        this.showBtn = true
      },800)

      apiRedoReportLog.redoLogMg(msgType).then(res=>{
        this.$message.success('已提交后台执行')  
      })
    }
  }
};
</script>
